package com.vanke.devops.domain.manager.docker.extend.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;
import java.util.Map;

/**
 * @author 陈景阳
 * @since 2018/6/7
 */
@Getter
@Setter
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Service implements Serializable {
    private static final long serialVersionUID = 1L;

    @JsonProperty("ID")
    private String id;

    @JsonProperty("CreatedAt")
    private String createAt;

    @JsonProperty("UpdatedAt")
    private String updatedAt;

    @JsonProperty("Version")
    private Version version;

    @JsonProperty("Spec")
    private ServiceSpec spec;

    @JsonProperty("Labels")
    private Map<String,String> labels;

    @JsonProperty("Endpoint")
    private Endpoint endpoint;
}
